<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?php if(isset($messages['title'])){echo $messages['title'];}?></title>
<link rel="stylesheet" href="<?php echo base_url()."public/css/admin.css";?>">

<?php if(isset($hindi_textbox)){?>

<script type="text/javascript" src="http://www.google.com/jsapi">
    </script>

<script type="text/javascript">

google.load("elements", "1", {packages: "transliteration"});

function OnLoad() {

  var options = {
      sourceLanguage:
          google.elements.transliteration.LanguageCode.ENGLISH,
      destinationLanguage:
          [google.elements.transliteration.LanguageCode.HINDI],
      shortcutKey: 'ctrl+g',
      transliterationEnabled: true
  };

  // Create an instance on TransliterationControl with the required
  // options.
  var control =
      new google.elements.transliteration.TransliterationControl(options);

  // Enable transliteration in the textbox with id
  // 'transliterateTextarea'.
  <?php 
  if(is_array($hindi_textbox)){
  foreach($hindi_textbox as $ht){?>
  control.makeTransliteratable(['<?php echo $ht;?>']);
  <?php }}?>
}

google.setOnLoadCallback(OnLoad);

</script>
<?php }?>
</head>

<body >
Admin Layout
<?php include(APPPATH."/views/layouts/admin_menu.php");?>
{yield}

</body>
</html>
